
nums_in = [2, 3, 4, 5, 6]
#       0  1  2  3  4
target_in = 100

def find_target(nums, target):
    # 函数体
    for i in range(len(nums)-1):
        if i != (len(nums)-1):
            for j in range(len(nums)-i-1):
                if nums[i] + nums[i+j+1] == target:
                    print("found!")
                    index = [i, i+j+1]
                    return index
        else:
            return "no match"
            print("llllllllll")


print("佟思淇1212")
print(find_target(nums_in, target_in))

